from selenium.webdriver.common.by import By
from data033.Base.Base import Base

class Page(Base):
    # 点击登录
    login01 = (By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a')
    def login_01(self):
        self.click(self.login01)
    # 输入账号
    username = (By.NAME,'username')
    def name(self):
        self.send_keys(self.username,'17660387762')
    # 输入密码
    password = (By.NAME,'password')
    def word(self):
        self.send_keys(self.password,'123456')
    # 点击登录
    login02 = (By.CLASS_NAME,'finish-btn')
    def login_02(self):
        self.click(self.login02)

    def test_a3mall_case_01(self):
        self.open_url('http://10.59.9.14:7003/')
        self.sleep(3)
        self.login_01()
        self.sleep(2)
        self.name()
        self.word()
        self.sleep(7)
        self.login_02()
        self.sleep(4)









